﻿<UserControl x:Class="SpinDotters.Core.Samples.ToggleSwitchDemoControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sd="clr-namespace:SpinDotters.Core;assembly=SpinDotters.Core"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="800" d:DesignWidth="480"
    FontSize="28">

    <StackPanel>
        <sd:Ticker x:Name="myTicker"
                   Interval="3"
                   VerticalAlignment="Center"
                   Margin="0,20"
                   FontSize="48"
                   Background="DarkOrange"
                   Reflective="{Binding ElementName=ReflectionToggleSwitch, Path=IsChecked}">
            <TextBlock Text="Please press" />
            <TextBlock Text="the ToggleSwitches" />
            <TextBlock Text="down below" />
        </sd:Ticker>
        <sd:ToggleSwitch x:Name="SpeedToggleSwitch"
                         TextOn="Fast"
                         BrushOn="Crimson"
                         TextOff="Slow"
                         Checked="SpeedToggleSwitch_CheckChanged"
                         Unchecked="SpeedToggleSwitch_CheckChanged">Speed:</sd:ToggleSwitch>
        <sd:ToggleSwitch x:Name="ReflectionToggleSwitch"
                          BrushOn="Crimson">Reflective:</sd:ToggleSwitch>
    </StackPanel>
</UserControl>
